package com.linq.cool.file.config;

import io.minio.MinioClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: yqlin
 * @Date: 2021/1/1 22:37
 * @Description:
 * @Version: 1.0.0
 */
@Configuration
public class ApplicationConfig {
    @Bean
    public MinioClient minioClient() {
        return MinioClient
                .builder()
                .endpoint(MinioProperties.MINIO_END_POINT, MinioProperties.MINIO_PORT, MinioProperties.MINIO_SECURE)
                .credentials(MinioProperties.MINIO_ACCESS_KEY, MinioProperties.MINIO_SECRET_KEY)
                .build();
    }
}
